<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">
	<title>hr-m-s</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/style.css" >
	<script type="text/javascript" src="<%=basePath%>js/jquery-1.7.2.js" ></script>
</head>
<body>
<form id="insurance_type_edit" name="insurance_type_edit" method="post" action="insuranceType!update">
  <table width="800" border="1" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <th colspan="3" scope="col">修改社保福利类型信息<br></th>
    </tr>
    <tr>
      <td width="100">名称<br></td>
      <td width="500">
      	<input name="insuranceTypeName" type="text" id="insuranceTypeName" size="50" maxlength="50" value='<s:property value="insuranceType.insuranceTypeName"/>'/>
      </td>
      <td width="200">用于显示名称<br></td>
    </tr>
    <tr>
      <td>百分比</td>
      <td>
		<input name="insuranceTypeLevyPercentage" type="text" id="insuranceTypeLevyPercentage" size="50" maxlength="50" value='<s:property value="insuranceType.insuranceTypeLevyPercentage"/>'/>
	  </td>
      <td>扣除的百分比</td>
    </tr>
    <tr>
      <td colspan="3">
      	<input name="insuranceTypeID" type="hidden" id="insuranceTypeID" value='<s:property value="insuranceType.insuranceTypeID"/>'/>
        <input name="submit" type="submit" id="submit" value="修改" />
		<input name="reset" type="reset" id="reset" value="重置" />
	  </td>
    </tr>
  </table>
</form>
<script type="text/javascript">
		$(function(){
    		$("#submit").click(function(){
     			if($("#insuranceTypeName").val()==""){
      				alert("请输入社保福利类型名称!");
      				$("#insuranceTypeName").focus();
     				return false;
     			}
     			if($("#insuranceTypeLevyPercentage").val()==""){
      				alert("请输入社保福利类型扣除百分比!");
      				$("#insuranceTypeLevyPercentage").focus();
     				return false;
     			}
     			return true;
    		});
  		});
</script>
</body>
</html>
